Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump bazel to 0.26.1 #407

Merged
merged 7 commits into from
Sep 5, 2019
Merged

Bump bazel to 0.26.1 #407

merged 7 commits into from
Sep 5, 2019

Conversation

celskeggs
Copy link
Member

@celskeggs celskeggs commented Sep 3, 2019

This is a set of changes, partially pulled out of @cryslith's work in #404, which make it possible to build with Bazel 0.26.1. Bumping to bazel 0.27.2 is not possible at this time, for the reason shown in #404, where containerregistry has a bug that affects us, so we're just going up to this version.

I'm not certain all of the changes I pulled out are strictly necessary for 0.26.1, but they're all good changes to have, so we may as well include them now.


Checklist:

  • I have split up this change into one or more appropriately-delineated commits.
  • The first line of each commit is of the form "[component]: do something"
  • I have written a complete, multi-line commit message for each commit.
  • I have formatted any Go code that I have changed with gofmt.
  • I have written or updated appropriate documentation to cover this change.
  • I have confirmed that this change is covered by at least one appropriate test run by CI.
  • If my change includes new or modified functionality, I have tested that the changes work as expected.
  • I have assigned this issue to an appropriate reviewer. (Choose @celskeggs if you are not otherwise certain.)
  • I consider my PR complete and ready to be merged without my further input, assuming that it passes CI and code review.
  • My changes have passed CI, including an automatic Jenkins deploy.
  • My changes have passed code review.

@celskeggs celskeggs changed the title Temp refactor 404 Bump bazel to 0.26.1 Sep 3, 2019
@celskeggs celskeggs added this to the Dev Cluster 7 milestone Sep 3, 2019
@celskeggs celskeggs added the micro label Sep 3, 2019
@celskeggs celskeggs marked this pull request as ready for review September 3, 2019 22:42
@celskeggs celskeggs changed the base branch from master to 378-pin-bazel September 3, 2019 22:42
@celskeggs celskeggs changed the base branch from 378-pin-bazel to master September 3, 2019 22:42

curl -L -o "bazel-${VERSION}.deb" "https://github.com/bazelbuild/bazel/releases/download/${VERSION}/bazel_${VERSION}-linux-x86_64.deb"
curl -L -o "bazel-${VERSION}.deb.sig" "https://github.com/bazelbuild/bazel/releases/download/${VERSION}/bazel_${VERSION}-linux-x86_64.deb.sig"
gpg --no-default-keyring --keyring ./bazel-keyring.gpg --trust-mode=always --verify "bazel-${VERSION}.deb.sig"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

script refers to files bazel-keyring.gpg and install-bazel.sh which only works when run from this directory. Also might consider downloading temporary files to a tmpdir so that they don't clutter the working directory if verification fails. See debian-checksum.sh for how I did this for debian

celskeggs and others added 7 commits September 4, 2019 17:03
This uses the key downloaded previously (that we just removed) but
converted into a keyring to be more readily usable. This script
automatically grabs the sha256 hash based on checking a signature, and
updates the install-bazel.sh script to include the new version.
We want to follow as closely as possible to upstream.
Multiple changes rolled out to Bazel break our compatibility with the
latest version:
 - bazelbuild/bazel#5817
 - bazelbuild/bazel#5818
 - bazelbuild/bazel#5825

Update our version of zip_file to be compatible with these changes.
An upgrade to upstream bazel exposed an error in one of our BUILD
files:
 - bazelbuild/bazel#7513
For the sake of clarity, segment the directives in WORKSPACE into
neater blocks of code.
This is part of ensuring that we're compatible with the latest bazel.
Add additional dependencies on components no longer included in
rules_go.
We want to follow as closely as possible to upstream.
@celskeggs
Copy link
Member Author

@cryslith: re-review?

Copy link
Member

@cryslith cryslith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks!

@celskeggs celskeggs merged commit d302b1c into master Sep 5, 2019
@celskeggs celskeggs deleted the temp-refactor-404 branch September 5, 2019 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants